package cn.itcast.service;

import cn.itcast.entity.PageResult;
import cn.itcast.pojo.User;

import java.util.List;

public interface UserService {

    List<String> findRoleByUsername(String username);

    List<String> findPermissionByUsername(String username);

    User findUserByUsername(String username);

    PageResult findByPage(Integer currentPage, Integer pageSize, String queryString);

    Boolean save(List<Integer> roleIds, User user);

    Boolean delete(Integer id);

    Boolean edit(List<Integer> roleIds, User user);

    User findById(Integer id);

    List<User> findAll();

    List<Integer> findRoleIdsByUserId(Integer userId);
}
